package com.dbuil.bleshoes.ui.activity;

import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.dbuil.bleshoes.R;
import com.dbuil.bleshoes.adapter.GouwuCarAdapter;
import com.dbuil.bleshoes.base.BaseActivity;
import com.dbuil.bleshoes.bean.GouwuCarBean;

import java.util.ArrayList;
import java.util.List;

import butterknife.BindView;
import butterknife.OnClick;

public class GouWuCarActivity extends BaseActivity {
    @BindView(R.id.img_back)
    ImageView imgBack;
    @BindView(R.id.tv_edit)
    TextView tvEdit;
    @BindView(R.id.recycle_gouwu)
    RecyclerView mRecycle;
    @BindView(R.id.tv_jiesuan)
    TextView tvJiesuan;
    @BindView(R.id.tv_total_money)
    TextView tvTotalMoney;
    @BindView(R.id.tv_select_all)
    TextView tvSelectAll;
    private List<GouwuCarBean> listdata;
    private GouwuCarAdapter mAdapter;

    @Override
    public int getLayoutId() {
        return R.layout.activity_shopcar;
    }

    @Override
    public void initView() {
        super.initView();

        listdata = new ArrayList<>();

        for (int i = 0; i < 20; i++) {

            listdata.add(new GouwuCarBean());
        }
        mRecycle.setLayoutManager(new LinearLayoutManager(this));
        mAdapter = new GouwuCarAdapter(listdata);

        mRecycle.setAdapter(mAdapter);
    }

    @Override
    public void initData() {
        super.initData();

    }

    @OnClick({R.id.img_back, R.id.tv_edit, R.id.tv_jiesuan, R.id.tv_select_all})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.img_back:
                this.finish();
                break;
            case R.id.tv_edit:
                break;
            case R.id.tv_jiesuan:
                break;
            case R.id.tv_select_all:
                break;
        }
    }

}
